using System;
using System.Web.UI.HtmlControls;


public partial class UserControl_FormErrorList : System.Web.UI.UserControl
{
	private bool _IsError = false;

    protected void Page_Load(object sender, EventArgs e)
    {
		_ErrorList.Visible = false;
    }

	public void AddError(string InputError)
	{
		_ErrorList.Visible = true;
		this._IsError = true;

		HtmlGenericControl ListItem = new HtmlGenericControl("li");
		ListItem.InnerText = InputError;

		_ErrorList.Controls.Add(ListItem);
	}

	public bool IsError
	{
		get { return this._IsError; }
	}
}
